import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path: '/stuList',
    name: 'stuList',
    //按需加载
    component: () => import('../views/StudentList.vue')
  },
  {
    path:'/TbSpecList',
    name:'TbSpecList',
    component:()=>import('../views/TbSpecList.vue')
  }
]

const router = new VueRouter({
  mode:'history',   //使用 HTML5 History API，非传统的 hash 模式
  routes
})

export default router
